const i = [{name: 1}, {name: 2}]


console.log(i.find(item => item.name === 1))